package com.rcloud.server.sealtalk.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
    * 商户认证资料表
    */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "user_doc_list")
public class UserDocList {
    /**
     * 主键ID
     */
    @Id
    @Column(name = "id")
    private Integer id;

    /**
     * 用户ID
     */
    @Column(name = "user_id")
    private Integer userId;

    /**
     * 认证资料信息
     */
    @Column(name = "post_url")
    private String postUrl;

    /**
     * 认证类型 1身份证头像面 2身份证国徽面 3营业执照 4烟草证 5食品经营许可证
     */
    @Column(name = "data_type")
    private Integer dataType;

    /**
     * 认证时间
     */
    @Column(name = "auth_time")
    private Date authTime;

    /**
     * 认证状态 0未认证 1认证通过 2认证失败
     */
    @Column(name = "auth_status")
    private Integer authStatus;

    /**
     * 上传时间
     */
    @Column(name = "create_time")
    private Date createTime;
}